package org.jbit.news.dao;

import java.util.List;

import org.jbit.news.entity.News;

public interface NewsDao{
	int save(News news);
	int del(int nid);
	int update(News news,int id);
	News getByName(String name,String password);
	List<News> findByName(String name);
	List<News> findByType(String type);
	public List<News> getAllnews();
	public int getNewsCount();
	public List<News> getNewsByPage(int pageIndex,int pageSize);
	News getById(int id);
}